package com.yanqu.road.server.channelserver.manager.activity.washe.msg;

import com.yanqu.road.entity.activity.washe.data.WasheUserMatchData;
import com.yanqu.road.pb.activity.WasheProto;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class WasheNoticeHelper {

    private int modeId;

    private Map<WasheUserMatchData, List<WasheProto.WasheSyncNoticeRespMsg>> keyListMap = new HashMap<>();

    public WasheNoticeHelper(int modeId) {
        this.modeId = modeId;
    }

    public void addNotice(WasheProto.WasheSyncNoticeRespMsg.Builder builder, WasheUserMatchData matchData) {
        keyListMap.putIfAbsent(matchData, new ArrayList<>());
        keyListMap.get(matchData).add(builder.build());
    }

    public Map<WasheUserMatchData, List<WasheProto.WasheSyncNoticeRespMsg>> getKeyListMap() {
        return keyListMap;
    }

    public int getModeId() {
        return modeId;
    }
}
